import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import VueCookies from 'vue-cookies';
import leMarkdownEditor from 'le-markdown-editor'
import 'github-markdown-css/github-markdown.css'

Vue.use(leMarkdownEditor)
const G2 = require('@antv/g2')
Vue.prototype.$G2 = G2
Vue.use(VueCookies);

axios.defaults.withCredentials = true
const axios1 = axios.create({
    // baseURL: "http://localhost:8181/api",
    baseURL: "/api",
})
const axios2 = axios.create({
    // baseURL: 'http://localhost:8181/v2/api'
    baseURL: '/v2/api'
})
Vue.prototype.$axios1 = axios1
Vue.prototype.$axios2 = axios2
Vue.config.productionTip = false
Vue.use(ElementUI)
new Vue({
    router,
    render: h => h(App)
}).$mount('#app')
